package org.ysu.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import org.ysu.core.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 角色与权限关联表
 * </p>
 *
 * @author CaoYuJia
 * @since 2024-08-19
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("role_resource")
@ApiModel(value = "RoleResource对象", description = "角色与权限关联表")
public class RoleResource extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("角色id")
    private Long roleId;

    @ApiModelProperty("权限id")
    private Long resourceId;

    @ApiModelProperty("权限类型")
    private Integer type;


}
